<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>コントロールパネル</title>

    <link href="./assets/styles/default.css" rel="stylesheet" />
    <link href="./assets/styles/page/item_rank.css" rel="stylesheet" />
	<script src="./assets/scripts/libs/jquery-1.7.1.min.js" type="text/javascript"></script>
	<script src="./assets/scripts/import.js" type="text/javascript"></script>
</head>
<body>

<header id="dashboard_header">
	<h1>
    	<a href="index.php">コントロールパネル</a>
    </h1>
    <ul>
		<li id="rt_site">
			<a href="javascript:;"><img src="../site_0001/images/logo.jpg" />SITEMANAGE　デモサイトA</a>
			<span><a href="../site_0001/" target="_blank">サイトを確認</a></span>
		</li>
    	<li id="rt_admin">
    		<a href="javascript:;">
    			<img src="./assets/images/common/header/blank_face.gif" />
    			おなべ
    		</a>
    	</li>
    	<li id="rt_dashboard">
    		<a href="index.php">Dash Board</a>
    	</li>
    	<li id="rt_logout">
    		<form id="form_logout" action="logout.php" method="post">
    			<input type="submit" id="button_logout" value="Logout" />
    		</form>
    	</li>
    </ul>
</header>
<script LANGUAGE="JavaScript">
<!--
function openwin(name) {
window.open ("{{'Home/Item/searchopen'|U}}?result="+name, "newwindow", "height=660, width=660, toolbar =no, menubar=no, scrollbars=yes, resizable=no, location=no, status=no") //写成一行
}
function delval(id){

$("#item_name"+id).attr("value","");
$("#item_name"+id+"_id").attr("value","");

}


//-->
</script> 
{{$zhead}}
<div id="container">
{{$zmenu}}
	

    <article>
    	<h2><span>&nbsp;</span>商品管理<p><a href="javascript:;">Open Plugins</a></p></h2>
        <nav>
        	<ul>
		     <li ><a href="{{'Home/Item/index'|U}}"><span>商品検索</span></a></li>
              <li><a href="{{'Home/Item/insert'|U}}"><span>商品登録</span></a></li>
              <li class="active"><a href="{{'Home/Item/rank'|U}}"><span>ランキング</span></a></li>
              <li><a href="{{'Home/Item/set'|U}}"><span>基本設定</span></a></li>
			</ul>
        </nav>

		<section id="content">
        	<h3>ランキング設定</h3>
        	{{if $show_massg}}
			
		
			<p class="message">内容を確認し、更新ボタンをクリックしてください。</p>
			<form name="fm" action="{{'Home/Item/rank'|U}}" method="post">
				<table class="formTable">
					<tbody>
						<tr>
							<th>設定</th>
							<td>
								<ul class="rank_list">
								
							
								
								
									<li id="1"><span>1位</span><input onclick="openwin('item_name1')"  type="text" id="item_name1" name="item[1]" class="text rank" value="{{$good_date.0.goods_name}}" readonly><input type="hidden" id="item_name1_id" name="item_id[1]" value="{{$good_date.0.good_id}}"><a href="javascript:delval(1);" class="del_cell_item btnDel">削除</a></li>
									
									<li id="2"><span>2位</span><input onclick="openwin('item_name2')"  type="text" id="item_name2" name="item[2]" class="text rank" value="{{$good_date.1.goods_name}}" readonly><input type="hidden" id="item_name2_id" name="item_id[2]" value="{{$good_date.1.good_id}}"><a href="javascript:delval(2);" class="del_cell_item btnDel">削除</a></li>
									
									<li id="3"><span>3位</span><input onclick="openwin('item_name3')"  type="text" id="item_name3" name="item[3]" class="text rank" value="{{$good_date.2.goods_name}}" readonly><input type="hidden" id="item_name3_id" name="item_id[3]" value="{{$good_date.2.good_id}}"><a href="javascript:delval(3);" class="del_cell_item btnDel">削除</a></li>
									
									<li id="4"><span>4位</span><input onclick="openwin('item_name4')"  type="text" id="item_name4" name="item[4]" class="text rank" value="{{$good_date.3.goods_name}}" readonly><input type="hidden" id="item_name4_id" name="item_id[4]" value="{{$good_date.3.good_id}}"><a href="javascript:delval(4);" class="del_cell_item btnDel">削除</a></li>
									
									<li id="5"><span>5位</span><input onclick="openwin('item_name5')"  type="text" id="item_name5" name="item[5]" class="text rank" value="{{$good_date.4.goods_name}}" readonly><input type="hidden" id="item_name5_id" name="item_id[5]" value="{{$good_date.4.good_id}}"><a href="javascript:delval(5);" class="del_cell_item btnDel">削除</a></li>
									
									<li id="6"><span>6位</span><input onclick="openwin('item_name6')"  type="text" id="item_name6" name="item[6]" class="text rank" value="{{$good_date.5.goods_name}}" readonly><input type="hidden" id="item_name6_id" name="item_id[6]" value="{{$good_date.5.good_id}}"><a href="javascript:delval(6);" class="del_cell_item btnDel">削除</a></li>
									
									<li id="7"><span>7位</span><input onclick="openwin('item_name7')"  type="text" id="item_name7" name="item[7]" class="text rank" value="{{$good_date.6.goods_name}}" readonly><input type="hidden" id="item_name7_id" name="item_id[7]" value="{{$good_date.6.good_id}}"><a href="javascript:delval(7);" class="del_cell_item btnDel">削除</a></li>
									
									<li id="8"><span>8位</span><input onclick="openwin('item_name8')"  type="text" id="item_name8" name="item[8]" class="text rank" value="{{$good_date.7.goods_name}}" readonly><input type="hidden" id="item_name8_id" name="item_id[8]" value="{{$good_date.7.good_id}}"><a href="javascript:delval(8);" class="del_cell_item btnDel">削除</a></li>
									
									<li id="9"><span>9位</span><input onclick="openwin('item_name9')"  type="text" id="item_name9" name="item[9]" class="text rank" value="{{$good_date.8.goods_name}}" readonly><input type="hidden" id="item_name9_id" name="item_id[9]" value="{{$good_date.8.good_id}}"><a href="javascript:delval(9);" class="del_cell_item btnDel">削除</a></li>
									
									<li id="10"><span>10位</span><input onclick="openwin('item_name10')"  type="text" id="item_name10" name="item[10]" class="text rank" value="{{$good_date.9.goods_name}}" readonly><input type="hidden" id="item_name10_id" name="item_id[10]" value="{{$good_date.9.good_id}}"><a href="javascript:delval(10);" class="del_cell_item btnDel">削除</a></li>
									
									
								
									
									
									
									
									
									
									
									
								</ul>
							</td>
						</tr>
					</tbody>
				</table>
			<p class="button">
				<INPUT type='hidden' name='act' value='save'>
					<button type="submit" id="btn_update" class="submit"><span>更新</span></button>
				</p>
			</form>
		{{else}}
		
			<p class="message">{{$message}}</p>
			<ul class="result_btn clear" style="margin-top:20px;">
                <li><a href="{{'Home/Item/rank'|U}}">一覧に戻る</a></li>
          </ul>
		{{/if}}
		
		</section>
	</article>
</div>
<footer id="dashboard_footer">Copyright (C) SHIFT. / All rights reserved.</footer>
</body>
</html>